<?php

namespace app\user\model;

use think\Model;
use think\Request;
use app\common\model\BaseModel;

/**
* @property string $user_share_uuid 用户分享ID
* @property int $user_id 用户ID
* @property int $article_id 文章ID
* @property string $share_type 分享类型:1=文章;2=小程序
* @property string $create_date 分享日期
* @property string $create_time 
* @property string $update_time 
*/
class UserShare extends BaseModel
{
    // 表名
    protected $table = 'user_share';
    protected $pk = 'user_share_uuid';
    const primaryKey = 'user_share_uuid';

    // 追加属性
    protected $append = [

    ];

    public static function __make(Request $request)
    {
        return (new self())->find($request->param(self::primaryKey));
    }
}
